<?php
// +----------------------------------------------------------------------
// | Mcake
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://121.43.104.7 All rights reserved.
// +----------------------------------------------------------------------
// | Author: allen.qiang@fistforward.com
// +----------------------------------------------------------------------

/**
 * 冰包扫描
 * @package  htdocs
 * @subpackage  quanliadmin
 * @author   allen.qiang<allen.qiang@fistforward.com>
 */

class pa_icePackManage {

    public function execute() {

        if (isset($_REQUEST['operFlg']) && $_REQUEST['operFlg'] > 0) {

            global $G_PGLOB;

            switch ($_REQUEST['operFlg']) {

                case 1:
                    $this->main();
                    break;

                default:
                    $G_PGLOB->smarty->assign('msg', '参数错误，请审核后再操作');
                    $G_PGLOB->smarty->display('comm/error.tpl');

            }

        }

    }


    /**
     * 冰包扫描
     */
    private function main() {

        global $G_PGLOB;

        $currentDate = $G_PGLOB->sys_date;
        $G_PGLOB->smarty->assign('currentDate',$currentDate);
        $G_PGLOB->smarty->assign('voucher_operator',$G_PGLOB->currentUserID);//装包人
        $G_PGLOB->smarty->assign( 'EDIT_PERMISSION' , $G_PGLOB->has_permission(20008) );
        $G_PGLOB->smarty->display('production/icePackGoodsList.tpl');

    }
}